package com.alibaba.travel.comment.dto;

import com.alibaba.travel.comment.dto.entity.CommentEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 *
 * @Author: where
 * @Date: 2023/03/02/9:27
 * @Description:
 */
@ApiModel(description = "前端数据传输dto")
@Data
public class CommentDto extends CommentEntity {
    @ApiModelProperty(value = "评论内容")
    private String content;

    @ApiModelProperty(value = "评论内容")
    private List<CommentDto> childrenList;

    @ApiModelProperty(value="评论回复数")
    private Long commentNumber = Long.valueOf(0);
}
